/*
 * @Autor: dingxiaolin
 * @Date: 2020-11-28 14:06:24
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2020-11-30 02:11:14
 */
import fly from '../fly.js'
export default {
    /**
     * 获取园区列表
     */
    getParkInfoList: function() {
        return fly.get('/api/ParkInfo/GetParkInfoList', {})
    },
    /**
     * 自动新增园区访问次数
     */
    autoAddVisitsCount: function(id) {
        return fly.get('/api/ParkInfo/AutoAddVisitsCount?id='+id, {})
    },
    /**
     * 根据园区ID获取园区信息
     */
    getParkInfoAsync: function(id) {
        return fly.get('/api/ParkInfo/GetParkInfoAsync?id='+id, {})
    },
    /**
     * 新增纪念馆
     */
    addMemoriaHall: function(body) {
        return fly.post('/api/MemorialHall/AddMemoriaHall', body)
    },
    /**
     * 根据用户ID获取纪念馆列表
     */
    getAllMemoriaHallList: function(id) {
        return fly.get('/api/MemorialHall/getAllMemoriaHallList?UserId='+id, {})
    },
    /**
     * 根据ID删除纪念馆信息
     */
    delMemoriaHall: function(id) {
        return fly.get('/api/MemorialHall/DelMemoriaHall?id='+id, {})
    },
    /**
     * 自动新增纪念馆访问次数
     */
    AutoAddMemoria: function(id) {
        return fly.get('/api/MemorialHall/AutoAddMemoriaHallVisitsCount?id='+id, {})
    },
    
}